<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="t" uri="http://tiles.apache.org/tags-tiles"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>

<s:url var="action_url" value="/users/save"/>

<!-- /section:settings.box -->
<div class="page-header">
    <h1>
        ${pageTitle}
        <small>
            <i class="ace-icon fa fa-angle-double-right"></i>
            ${pageDescription}
        </small>
    </h1>
</div><!-- /.page-header -->
<!-- /section:settings.box -->
<div class="row">
    <div class="col-xs-12">


        <sf:form method="POST" class="form-horizontal" role="form" modelAttribute="groupForm" action="${action_url}">

            <sf:hidden path="uid"/>
            <div class="form-group">
                <sf:label cssClass="col-sm-3 control-label no-padding-right" path="name">Nome</sf:label>
                    <div class="col-sm-9">
                    <sf:input maxlength="255" path="name" placeholder="Nome" cssClass="col-xs-10 col-sm-5"/><br/>
                    <sf:errors path="name" cssClass="text-danger bold" />
                </div>
            </div>
            <div class="form-group">
                <sf:label cssClass="col-sm-3 control-label no-padding-right" path="description">Descrição</sf:label>
                    <div class="col-sm-9">
                    <sf:input maxlength="255" path="description" placeholder="Descrição" cssClass="col-xs-10 col-sm-5"/><br/>
                    <sf:errors path="description" cssClass="text-danger bold" />
                </div>
            </div>
            
            <div class="space-4"></div>

            <div class="clearfix form-actions">
                <div class="col-md-offset-3 col-md-9">
                    <button class="btn btn-info" type="submit">
                        <i class="icon-ok bigger-110"></i>
                        Salvar
                    </button>

                    &nbsp; &nbsp; &nbsp;
                    <a href="<s:url value="/usuarios" />" class="btn" >
                        <i class="icon-undo bigger-110"></i>
                        Voltar
                    </a>
                </div>
            </div>

        </sf:form>
    </div>
</div>
